package model

type IncubateList map[int32]*Incubate
type Incubate struct {
	Egg  int32 `json:"eggID" bson:"egg"`
	Time int64 `json:"beginTime" bson:"time"` //Milli second
}

func (this *Incubate) Clone() *Incubate {
	r := *this
	return &r
}

func (this IncubateList) Clone() IncubateList {
	if this == nil {
		return IncubateList{}
	}
	r := make(IncubateList, len(this))
	for k, v := range this {
		r[k] = v.Clone()
	}
	return r
}
